<include file="Public:head" />

	<div class="table_box">
		<div style="margin: 15px;">
			<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
				<legend>网站设置</legend>
			</fieldset>

			<form class="layui-form" >
				<div class="layui-form-item">
					<label class="layui-form-label">网站名称</label>
					<div class="layui-input-block">
						<input type="text" name="web_name" id="web_name"  placeholder="请输入网站名称" class="layui-input" value="{$info[0].value}">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">首页title标题</label>
					<div class="layui-input-block">
						<input type="text" name="title"  id="title" placeholder="请输入标题"  class="layui-input" value="{$info[1].value}">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">META关键词</label>
					<div class="layui-input-block">
						<textarea placeholder="多个关键词用英文逗号分割" name="mete_keywords" id="mete_keywords" class="layui-textarea">{$info[2].value}</textarea>
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">META描述</label>
					<div class="layui-input-block">
						<textarea placeholder="添加MATA描述" name="mete_description" id="mete_description"  class="layui-textarea">{$info[3].value}</textarea>
					</div>
				</div>

				<div class="layui-form-item layui-form-text">
					<label class="layui-form-label">版权/备案</label>
					<div class="layui-input-block">
						<textarea placeholder="请输入版权/备案信息"  name="beian" id="beian"  class="layui-textarea">{$info[4].value}</textarea>
					</div>
				</div>
			</form>

			<div class="layui-form-item">
				<div class="layui-input-block">
					<button class="layui-btn" onclick="sub()">确认修改</button>
					
				</div>
			</div>

		</div>
	</div>

<include file="Public:foot" />



<!-- -------------------------------------------------------------------------------- -->


<script>

//确定-提交
function sub(){
	
	var web_name = $('#web_name').val();
	var title = $('#title').val();
	var mete_keywords = $('#mete_keywords').val();
	var mete_description = $('#mete_description').val();
	var beian = $('#beian').val();


	$.ajax({
	  type:"get",
	  url:"__APP__/webinfo/edit",
	  data:$(".layui-form").serialize(),
	  success:function(data){
	  	// alert(data);
	  	// console.log(data);
	    returnInfo(data);

	  }        
	})//ajax结束
}

</script>


